
# Name of docker image
IMAGE_NAME=lbfheu/slam_work

# Tag of docker image
IMAGE_VERSION=demov2

# Docker Instance Name
INSTANCE_NAME=demov2

# Host port mapped to container for ssh connection
SSH_PORT=3220

# username inside docker
username=xyt

# user password
password=123

# uid inside docker that maps to the docker uid
uid=1000

# gid inside docker that maps to the docker gid
gid=1000

# System timezone
timezone=Asia/Shanghai

WORKSPACE_DIR=workspace
# show rviz
xhost +local:docker

docker run \
        -it \
        -p $SSH_PORT:23 \
        --env="DISPLAY" \
        --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
        --env="QT_X11_NO_MITSHM=1" \
        --rm \
	      --name $INSTANCE_NAME \
        -v $PWD/../:/home/$username/dev_workspace/ \
        --privileged \
        -e WORKSPACE_DIR=$WORKSPACE_DIR\
        -v /dev:/dev \
        $IMAGE_NAME:$IMAGE_VERSION